package com.bigmi.apis.article.fallback;

import com.bigmi.apis.article.ArticleClientIp;
import com.bigmi.model.article.Dto.ArticleDto;
import com.bigmi.model.common.dtos.ResponseResult;
import com.bigmi.model.common.enums.AppHttpCodeEnum;
import org.springframework.stereotype.Component;

/**
 * 服务获取失败
 */
@Component
public class ArticleClientIpFallback implements ArticleClientIp {
    @Override
    public ResponseResult saveArticle(ArticleDto articleDto) {
        return ResponseResult.errorResult(AppHttpCodeEnum.SERVER_ERROR,"获取数据失败");
    }

    @Override
    public ResponseResult upAndDown(Long articleId) {
        return ResponseResult.errorResult(AppHttpCodeEnum.SERVER_ERROR,"获取数据失败");
    }

    @Override
    public ResponseResult del(Long articleId) {
        return ResponseResult.errorResult(AppHttpCodeEnum.SERVER_ERROR,"获取数据失败");
    }
}
